import { createStore, applyMiddleware } from 'redux';
import reducer from './reducer';
import thunk from 'redux-thunk';

// const store = createStore(reducer);
const store = createStore(reducer, applyMiddleware(thunk));
// store.subscribe(()=>{
//     console.log(store.getState());
// })
export default store;
